<script>
export default {
	onLaunch: function () {
		console.log('App Launch')

	},
	onShow: function () {
		console.log('App Show')
		// 创建用户信息对象
		const userInfo = {
			phoneNumber: '111111',
			WeiXinId: 'o3_ix6whQhZM75buago851od2_HU'
		}

		// 创建模拟的token (实际应用中通常从服务器获取)
		const token = 'mock-token-' + Date.now()

		// 调用store的登录action
		this.$store.dispatch('user/login', {
			token,
			userInfo
		})
	},
	onHide: function () {
		console.log('App Hide')
	}
}
</script>

<style lang="scss">
@import "@/static/iconfont/iconfont.css";

/*每个页面公共css */
view {
	box-sizing: border-box;
}

.content {
	height: 100vh;
	width: 100vw;
	box-sizing: border-box;
	overflow: hidden;
}

.scroll-y {
	overflow-y: scroll;
}


.linear-bg {
	background: linear-gradient(to right, $theme-color-light, $theme-color-dark);
}

.linear-bg-norml {
	background: linear-gradient(to right, $theme-color, $theme-color-dark);
}
</style>